package com.study.system.edusearchservice.client;

import com.edu.common.entity.Course;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * 远程调用课程微服务的客户端
 */
@FeignClient("edu-course-service")
public interface CourseServiceFeignClient {

    /**
     * 获得所有课程
     * @return
     */
    @RequestMapping("/courses")
    ResponseEntity<List<Course>> getAllCourse();
}
